import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '创建日期',
    align: "center",
    sorter: true,
    dataIndex: 'createTime'
  },
  {
    title: '手机号',
    align: "center",
    dataIndex: 'phone'
  },
  {
    title: '是否已回复',
    align: "center",
    dataIndex: 'replyStatus_dictText'
  },
  {
    title: '尿酸值',
    align: "center",
    dataIndex: 'uricAcid'
  },
  {
    title: '疼痛位置',
    align: "center",
    dataIndex: 'painLocation'
  },
  {
    title: '疼痛持续时间',
    align: "center",
    dataIndex: 'painDuration'
  },
  {
    title: '痛风发作周期',
    align: "center",
    dataIndex: 'goutCycle'
  },
  {
    title: '当前用药',
    align: "center",
    dataIndex: 'currentMedication'
  },
  {
    title: '性别',
    align: "center",
    dataIndex: 'gender'
  },
  {
    title: '体重',
    align: "center",
    dataIndex: 'weight'
  },
  {
    title: '年龄',
    align: "center",
    dataIndex: 'age'
  },
  {
    title: '其他疾病',
    align: "center",
    dataIndex: 'otherDiseases'
  },
  // {
  //   title: '手机号',
  //   align: "center",
  //   dataIndex: 'phone'
  // },
  // {
  //   title: '回复',
  //   align: "center",
  //   dataIndex: 'reply'
  // },
  // {
  //   title: '回复状态',
  //   align: "center",
  //   dataIndex: 'replyStatus'
  // },
];

// 高级查询数据
export const superQuerySchema = {
  uricAcid: {title: '尿酸值',order: 1,view: 'number', type: 'number',},
  painLocation: {title: '疼痛位置',order: 2,view: 'text', type: 'string',},
  painDuration: {title: '疼痛持续时间',order: 3,view: 'text', type: 'string',},
  goutCycle: {title: '痛风发作周期',order: 4,view: 'text', type: 'string',},
  currentMedication: {title: '当前用药',order: 5,view: 'text', type: 'string',},
  gender: {title: '性别',order: 6,view: 'text', type: 'string',},
  weight: {title: '体重',order: 7,view: 'number', type: 'number',},
  age: {title: '年龄',order: 8,view: 'number', type: 'number',},
  otherDiseases: {title: '其他疾病',order: 9,view: 'text', type: 'string',},
  phone: {title: '手机号',order: 10,view: 'text', type: 'string',},
  reply: {title: '回复',order: 11,view: 'textarea', type: 'string',},
  replyStatus: {title: '回复状态',order: 12,view: 'number', type: 'number',},
};
